function [output]=fuzz(sound, amount)

norms = norm(sound);
output = sound/norms;
amount = (1- amount)/100;

for i = 1:length(output)
    
  
  if ( output(i) > amount )
    output(i) = amount;
  end

  if ( output(i) < -amount)
     output(i) = -amount;
  end
 
end
 
output = output*norms;
normsfuzz = norm(output);
output = output*norms/normsfuzz;
end